package com.tdkj.action.backstage.risevalue;

import java.util.List;

import javax.annotation.Resource;

import com.tdkj.action.BaseAction;
import com.tdkj.model.risevalue.BeanPlateQuotationSubscription;
import com.tdkj.service.risevalue.IBeanPlateQuotationSubscriptionService;


public class PlateQuotationSubscriptionAction extends BaseAction {
    
	private IBeanPlateQuotationSubscriptionService plateQuotationSubscriptionService;
	
	private Long id;
	
	private List<BeanPlateQuotationSubscription> subscriptions ;
	
	private BeanPlateQuotationSubscription subscription ;
	
	private String message;
	
	
	public String execute() {
		subscriptions = plateQuotationSubscriptionService.findAll(BeanPlateQuotationSubscription.class);
		return "success";
	}
	
	public String getById() {
		subscription = plateQuotationSubscriptionService.findById(id, BeanPlateQuotationSubscription.class);
		return "getById";
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the subscriptions
	 */
	public List<BeanPlateQuotationSubscription> getSubscriptions() {
		return subscriptions;
	}

	/**
	 * @param subscriptions the subscriptions to set
	 */
	public void setSubscriptions(List<BeanPlateQuotationSubscription> subscriptions) {
		this.subscriptions = subscriptions;
	}

	/**
	 * @return the subscription
	 */
	public BeanPlateQuotationSubscription getSubscription() {
		return subscription;
	}

	/**
	 * @param subscription the subscription to set
	 */
	public void setSubscription(BeanPlateQuotationSubscription subscription) {
		this.subscription = subscription;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Resource
	public void setPlateQuotationSubscriptionService(
			IBeanPlateQuotationSubscriptionService plateQuotationSubscriptionService) {
		this.plateQuotationSubscriptionService = plateQuotationSubscriptionService;
	}
	


	
	
}
